const domain = process.env.BASEURL || '';//"http://yz.ptnetwork001.com/yzwdm";
const uploadFile = process.env.BASEURL+'/balabala/uploadFile';
const tools = [
    {"type": "base", "typeName": "基础组件", 
        "typeList": [
            {"name": "富文本", "iconname": "icon-wenben", "designtype": "FormDesignRicheditor", "doclick": true, "tooltip": "", "changeToolTip": ""},
            {"name": "标题", "iconname": "icon-fuwenben", "designtype": "DesignTitle", "doclick": true, "tooltip": "", "changeToolTip": ""},
            {"name": "图片", "iconname": "icon-tupian", "designtype": "DesignImage", "doclick": true, "tooltip": "", "changeToolTip": ""},
            {"name": "辅助空白", "iconname": "icon-kongxinfangkuai", "designtype": "DesignWhitespace", "doclick": true, "tooltip": "", "changeToolTip": ""},
            {"name": "背景", "iconname": "icon-default-option", "designtype": "DesignBackground", "doclick": true, "tooltip": "", "changeToolTip": "该模板无法使用该组件"},
        ]
    },
    {"type": "business", "typeName": "业务组件", 
        "typeList": [
            {"name": "商品", "iconname": "icon-liebiao", "designtype": "DesignGoodList", "doclick": true, "tooltip": "", "changeToolTip": ""},
        ]
    },
];
let designPreVal = [
    {
        "designtype": "DesignConfig",//页面大标题组件
        "title": "",//标题名称
        "shareType": true,//是否分享
        "shareTitle": "",//分享标题
        "shareDetail": "",//分享描述
        "shareImg": "",//分享上传的图片
        "visible": false,//显示删除弹框
        "toolbarEdit": true,//显示右侧编辑组件
        "toolbarComponents": false,//显示右侧添加组件
    },
    {
        "designtype": "FormDesignRicheditor",//标题组件
        "content": "",
		"gap": 30,
        "visible": false,//显示删除弹框
        "toolbarEdit": true,//显示右侧编辑组件
        "toolbarComponents": false,//显示右侧添加组件
    },
    {
        "designtype": "DesignTitle",//标题组件
        "location": "center",
        "title": "",//标题名称
        "fontsize": 12,//字体大小
        "color": "#a6a6a6",//字体颜色
        "visible": false,//显示删除弹框
        "toolbarEdit": true,//显示右侧编辑组件
        "toolbarComponents": false,//显示右侧添加组件
    },
    {
        "designtype": "DesignImage",//图片组件
        "type": "swiper-full-big",//图片类型   swiper-card-h-theme1  swiper-full-big
		"gap": 0,//图片间隙
		"padding": false,//开启留白
        "pagination": false,//开启页码
        "multipleItem": "1个",//首屏显示个数
        "items": [],
        // {
		// 	"link": "",//图片链接
		// 	"url": "",//图片路径
		// 	"name": "",//微信公众号网页
		// 	"miniProgram": false,
		// 	"miniType": false,
		// 	"miniAppid": "",
		// 	"imgid": "ac299bf3-2884-42b6-aec8-388c18e05a91",//添加图片的id
		// 	"uid": 1543484213402,
		// 	"status": "success"
		// }
        "visible": false,//显示删除弹框
        "toolbarEdit": true,//显示右侧编辑组件
        "toolbarComponents": false,//显示右侧添加组件
    },	
    {
        "designtype": "DesignGoodList",//商品组件
        "layout": "card",//列表样式
		"goodIds": [],//添加商品数组  "26","27","28"
        // defaultGoodNum: 1,//默认展示1张
        "visible": false,//显示删除弹框
        "toolbarEdit": true,//显示右侧编辑组件
        "toolbarComponents": false,//显示右侧添加组件
    },
    {
        "designtype": "DesignWhitespace",//辅助空白
        "num": 0,
        "visible": false,//显示删除弹框
        "toolbarEdit": true,//显示右侧编辑组件
        "toolbarComponents": false,//显示右侧添加组件
    },
    {
        "designtype": "DesignBackground",//背景
        "url": "",//背景图片路径
        "adaptive": false,//是否自适应
        "visible": false,//显示删除弹框
        "toolbarEdit": true,//显示右侧编辑组件
        "toolbarComponents": false,//显示右侧添加组件
    }
]
const imgsetList = [
    {
        "type": "swiper-full-big",
        "name": "轮播图（大）",
        "icon": "logo1"
    },{
        "type": "swiper-full-small",
        "name": "轮播图（小）",
        "icon": "logo2"
    },{
        "type": "swiper-card-h-theme1",
        "name": "卡片-横向滑动1",
        "icon": "logo3"
    },{
        "type": "swiper-card-h-theme2",
        "name": "卡片-横向滑动2",
        "icon": "logo4"
    },{
        "type": "fix-box-line",
        "name": "每行1列",
        "icon": "logo5"
    },{
        "type": "swiper-horizontal",
        "name": "导航-横向滑动",
        "icon": "logo6"
    },{
        "type": "fix-box-twoCol",
        "name": "2列",
        "icon": "logo7"
    },{
        "type": "fix-box-threeCol",
        "name": "3列",
        "icon": "logo8"
    },{
        "type": "fix-box-fourCol",
        "name": "4列",
        "icon": "logo9"
    },{
        "type": "fix-box-leftRight",
        "name": "左1右2",
        "icon": "logo10"
    },
    // {
    //     "type": "hotarea",
    //     "name": "绘制热区",
    //     "icon": "logo11"
    // },
]
export default{
    domain,
    uploadFile,
    tools,
    designPreVal,
    imgsetList
}